/*
 Copyright (C) 2008  Maurizio Monticelli

 This program is free software; you can redistribute it and/or modify it under the terms of the 
 GNU General Public License as published by the Free Software Foundation; either version 2 of the 
 License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
 even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 
 Public License for more details.

 You should have received a copy of the GNU General Public License along with this program; if not, write 
 to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA 
*/

package ch.justdoit.andriodrpncalc.view;

import android.content.Context;
import android.widget.AbsoluteLayout;
import ch.justdoit.andriodrpncalc.model.Model;
import ch.justdoit.andriodrpncalc.view.buttons.*;


public class KeyMenuDefaultCommands extends MenuBar {
	public static String NAME = "default";
	public KeyMenuDefaultCommands(Context context,  Model _model, MenuGroup menuGroup) {
		super(context,_model, menuGroup, KeyMenuDefaultCommands.NAME);
		
		
		int x = 0;
	    int y = 0;

	    ButtonNotImplemented btn1 = new ButtonNotImplemented(context, mModel, "d1");
		addView(btn1, 
    			new AbsoluteLayout.LayoutParams(btn1.WIDTH, btn1.HEIGHT, x, y)
    	);
		x = x + btn1.WIDTH;

		ButtonNotImplemented btn2 = new ButtonNotImplemented(context, mModel, "d2");
		addView(btn2, 
    			new AbsoluteLayout.LayoutParams(btn2.WIDTH, btn2.HEIGHT, x, y)
    	);
		x = x + btn2.WIDTH;
		
		ButtonNotImplemented btn3 = new ButtonNotImplemented(context, mModel, "d3");
		addView(btn3, 
    			new AbsoluteLayout.LayoutParams(btn3.WIDTH, btn3.HEIGHT, x, y)
    	);
		x = x + btn3.WIDTH;

		ButtonNotImplemented btn4 = new ButtonNotImplemented(context, mModel, "d4");
		addView(btn4, 
    			new AbsoluteLayout.LayoutParams(btn4.WIDTH, btn4.HEIGHT, x, y)
    	);
		x = x + btn4.WIDTH;

		ButtonNotImplemented btn5 = new ButtonNotImplemented(context, mModel, "d5");
		addView(btn5, 
    			new AbsoluteLayout.LayoutParams(btn5.WIDTH, btn5.HEIGHT, x, y)
    	);
		x = x + btn5.WIDTH;

		ButtonNotImplemented btn6 = new ButtonNotImplemented(context, mModel, "d6");
		addView(btn6, 
    			new AbsoluteLayout.LayoutParams(btn6.WIDTH, btn6.HEIGHT,  x, y)
    	);
		x = x + btn6.WIDTH;

		y = y + btn6.HEIGHT;
		
		WIDTH = x;
		HEIGHT = y;
	}	

}
